package com.tencet.servlet;

import com.alibaba.druid.support.json.JSONUtils;
import com.tencet.dao.TransferDAO;
import com.tencet.dao.impl.TransferDAOImpl;
import com.tencet.service.Impl.TransferServiceImpl;
import com.tencet.service.TransferService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author: @date: 2022/7/21 21:41
 * @description:
 */
@WebServlet("/transfer1")
public class TransferServlet1 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        String reduce_num = req.getParameter("reduce_num");
        TransferDAO transferDAO = new TransferDAOImpl();
        boolean s = transferDAO.getCardNum(reduce_num);


        resp.getWriter().write(""+s);
    }
}